package com.cloud.controller;

import com.cloud.service.TestLoginService;
import com.cloud.tools.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author: Tangtao
 * @Date: 2022/5/15 15:06
 * @Description:
 * @ClassName:
 */
@RestController
public class TestLoginController {
    @Resource
    TestLoginService testLoginService;

    @PostMapping("/user/loginByPhone")
    public CommonResult loginByPhone(@RequestBody Map<String,String> map){
        return testLoginService.loginByPhone(map);
    }

}
